Make it clear that /= is part of a regex and not an operator shorthand.
https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/710
prunedStr = prunedStr.replace(/[=!]==/g, ''); //replace === and !== with nothing
prunedStr = prunedStr.replace(/[=<>!]=/g, ''); //replace ==, <=, >=, != with nothing
- if (prunedStr.match(/=/)) {
+ if (prunedStr.match(/[=]/)) {
return true;
} else if (prunedStr.match(/;/)) {
// If we contain a semicolon not inside of a quote/regex, assume we're unsafe as well